import { mapGetters } from 'vuex'

export default {
	methods: {
		...mapGetters({
			isLogined: 'isLogined'
		}),
		needLoginCheckClickHandler(callback) {
			if(!this.isLogined()) {
				uni.navigateTo({
					url: '/pages/login/login'
				})
			}else {
				callback()
			}
		}
	}
}